<%@page import="cn.edu.pku.wxlib.adminuser.model.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
	<c:if test="${empty adminuser.adminId}">
	<input type="hidden" id="adminId" name="adminId" value="${adminuser.adminId}"/>
	</c:if>
	<c:if test="${not empty adminuser.adminId}">
	<div class="form-group">
		<label class="col-sm-5 control-label"><span class="required">*</span>用户ID:</label>
		<input id="adminId" name="adminId" class="form-field col-sm-10" value="${adminuser.adminId}" readonly/>
	</div>
	</c:if>
	<div class="form-group">
		<label class="col-sm-5 control-label"><span class="required">*</span>用户名:</label>
		<c:if test="${not empty adminuser.adminId}">
		<input value="${adminuser.adminName}" class="form-field col-sm-10" disabled="disabled"/>
		<form:input type="hidden" path="adminName" id="adminName" cssClass="form-field col-sm-10" maxlength="10" 
		/></c:if>
		<c:if test="${empty adminuser.adminId}">
		<form:input path="adminName" id="adminName" cssClass="form-field col-sm-10" placeholder="用户名" maxlength="10" 
		/></c:if>
    	<font color='red'><form:errors path="adminName"/></font>
	</div>
	
	<c:if test="${empty adminuser.adminId}">
	<div class="form-group">
		<label for="password" class="col-sm-5 control-label"><span class="required">*</span>密码:</label>
		<form:input type="password" path="password" id="password" cssClass="form-field col-sm-10" maxlength="32" placeholder="密码"/>
		<font color='red'><form:errors path="password"/></font>
	</div>	
	<div class="form-group">
    	<label for="confirmPassword" class="col-sm-5 control-label"><span class="required">*</span>确认密码</label>
    	<input type="password" class="form-field col-sm-10"  id="confirmPassword" placeholder="请重新输入新密码">
    	<span class="prompt"></span>
  	</div>
  	</c:if>
	<c:if test="${not empty adminuser.adminId}">
		<form:input type="hidden" path="password" id="password" cssClass="form-field col-sm-10" maxlength="32" placeholder="密码"/>
	</c:if>
	
	<div class="form-group">	
		<label class="col-sm-5 control-label">
			姓名:
		</label>		
		<form:input path="name" id="name" cssClass="form-field col-sm-10" maxlength="32" placeholder="姓名"/>
		<font color='red'><form:errors path="name"/></font>
	</div>	
	
	<div class="form-group">		
		<label class="col-sm-5 control-label">
			出生年月日:
		</label>
<!-- 		<i class="icon-calendar"></i>		 -->
		<input value="${adminuser.birthString}" placeholder="出生年月日" id="birthString" name="birthString" class="form-field" type="text"/>
		<font color='red'><form:errors path="birth"/></font>
	</div>
	
	<div class="form-group">		
		<label class="col-sm-5 control-label">
			性别:
		</label>	
		<select id="gender" name="gender" class="form-field">
			<option value="">性别</option>
            <option value="1"
            <c:if test="${adminuser.gender==1}">selected="selected"</c:if>>男</option>
            <option value="2"
            <c:if test="${adminuser.gender==2}">selected="selected"</c:if>>女</option>
		</select>
		<font color='red'><form:errors path="gender"/></font>
	</div>	
	
	<div class="form-group">		
		<label class="col-sm-5 control-label">
			座机:
		</label>	
		<form:input path="tel" id="tel" cssClass="form-field col-sm-10" maxlength="12" placeholder="座机"/>
		<font color='red'><form:errors path="tel"/></font>
	</div>
	
	<div class="form-group">
		<label class="col-sm-5 control-label">
			手机:
		</label>		
		<form:input path="phone" id="phone" cssClass="form-field col-sm-10" maxlength="11" placeholder="手机"/>
		<font color='red'><form:errors path="phone"/></font>
	</div>	
	
	<div class="form-group">
		<label class="col-sm-5 control-label">
			邮箱:		
		</label>
		<form:input path="email" id="email" cssClass="validate-email form-field col-sm-10" maxlength="64" placeholder="邮箱"/>
		<font color='red'><form:errors path="email"/></font>
	</div>	
	
	<c:if test="${not empty adminuser.adminId}">
		<div class="form-group">
			<label class="col-sm-5 control-label">
				创建时间:
			</label>		
			<input value="${adminuser.createTimeString}" id="createTimeString" name="createTimeString" class="form-field" type="text" disabled/>
			<font color='red'><form:errors path="createTime"/></font>
		</div>	
	</c:if>
	
	<div class="form-group">
		<label class="col-sm-5 control-label">
			状态:
		</label>		
		<select id="state" name="state" class="form-field">
            <option value="0"
            <c:if test="${adminuser.state==0}">selected="selected"</c:if>>禁用</option>
            <option value="1"
            <c:if test="${adminuser.state==1}">selected="selected"</c:if>>启用</option>
		</select>
		<font color='red'><form:errors path="state"/></font>
	</div>
	
		